import request from '@/utils/request'
// 获取-权限点列表
export const getPermissionListRequest = () => {
  return request.get('/sys/permission')
}
// 修改-权限点详情
export const updatePermissionRequest = (data) => {
  return request.put(`/sys/permission/${data.id}`, data)
}
// 删除-权限点
export const deletePermissionRequest = (id) => {
  return request.delete(`/sys/permission/${id}`)
}
// 新增-权限点
export const addPermissionRequest = (data) => {
  return request.post(`/sys/permission`, data)
}
// 获取-权限点详情
export const getPermissionDetailRequest = (id) => {
  return request.get(`/sys/permission/${id}`)
}
